import { Module } from "@nestjs/common";
import { BookEntity } from "./book.entity";
import { CatalogEntity } from "./catalog.entity";
import { AuthorEntity } from "./author.entity";
import { TypeOrmModule } from "@nestjs/typeorm";
import { UploadService } from "../tools/upload/upload.service";
import { StorageModule } from "~/modules/tools/storage/storage.module";
import { BooksController } from "./books.controller";
import { BooksService } from "./books.service";
import { AliyunOssModule } from "~/shared/aliyun-oss/aliyun-oss.module";

@Module({
	imports: [
		TypeOrmModule.forFeature([BookEntity, CatalogEntity, AuthorEntity]),
		StorageModule,
		AliyunOssModule
	],
	controllers: [BooksController],
	providers: [BooksService, UploadService],
	exports: []
})
export class BooksModule { }
